import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {HtmlPipe} from '../pipe/html.pipe';
import {SafePipe} from '../pipe/safe.pipe';
import {ConsumablesUseComponent} from '../pages/comComponents/consumables-use/consumables-use.component';
import {ImgComComponent} from '../pages/comComponents/img-com/img-com.component';
import {PersonalOnOffComponent} from '../pages/comComponents/personal-on-off/personal-on-off.component';
import {PersonalRecordComponent} from '../pages/comComponents/personal-record/personal-record.component';
import {RevokeApproveComponent} from '../pages/comComponents/revoke-approve/revoke-approve.component';
import {RevokeReasonComponent} from '../pages/comComponents/revoke-reason/revoke-reason.component';
// import {DraggableItemComponent} from '../pages/form-generator/generator/draggable-item/draggable-item.component';
// 全局共享模块名称
const APP_PROVIDERS = [
  CommonModule,
  FormsModule,
  ReactiveFormsModule,
  NgZorroAntdModule,
];

@NgModule(
  {
    declarations: [
      HtmlPipe,
      SafePipe,
      ConsumablesUseComponent,
      ImgComComponent,
      PersonalOnOffComponent,
      PersonalRecordComponent,
      RevokeApproveComponent,
      RevokeReasonComponent,
      // DraggableItemComponent
    ],
    imports: [
      ...APP_PROVIDERS
    ],
    exports: [
      ...APP_PROVIDERS,
      HtmlPipe,
      SafePipe,
      ConsumablesUseComponent,
      ImgComComponent,
      PersonalOnOffComponent,
      PersonalRecordComponent,
      RevokeApproveComponent,
      RevokeReasonComponent,
      // DraggableItemComponent
    ],
    providers: []
  }
)
/**
 * @author leihfei
 * @date 2019-04-01
 * @description 共享module放置位置
 */
export class ShareModule {

}


